package JavaGuide.JDK代理.静态代理;

public class SmsProxy implements SendSms{

    SendSmsImpl sms;

    public SmsProxy(SendSmsImpl sendSms) {
        this.sms = sendSms;
    }

    @Override
    public void sendSms(String msg) {
        System.out.println("验证码发送开始");
        sms.sendSms(msg);
        System.out.println("验证码发送结束");
    }
}
